const { http } = uni.$u

// 登录接口
export const loginApi = (params, config = {}) => http.post('/ygt-api/login', params, config)

// 获取登录信息接口
export const getLoginInfoApi = (params, config = {}) => http.get('/ygt-api/home/main/welcome', params, config)

////病种列表
export const diseaseListApi = (data, config = {}) => http.post('/ygt-api/disease/list', data)

////患者列表
export const memberListApi = (data, config = {}) => http.post('/ygt-api/patient/patientList', data)

////医院列表
export const hospitalListApi = (params, config = {}) => http.get('/ygt-api/v1/hospital/searchHospital', {params})

////科室列表
export const deptListApi = (params, config = {}) => http.get('/ygt-api/hospitalDepartments/searchDept', {params})

////即时即时会诊科室详情
export const v1Departments = (id, config = {}) => http.get('/ygt-api/v1/departments/'+id)
